/**
 * Created by lqj on 2017/11/8.
 */

(function () {
    $pg=jQuery.fn.pg=pg={
        //方法调用的处理
        init:function () {
            //四、有下拉滚动条的table列表
            $pg.pg_table_scroll();
            window.pg_table_scroll=$pg.pg_table_scroll;
            //八 、input带输入下拉检索功能调用
            $pg.drop_down_menu('.drop_down_menu');
            window.drop_down_menu=$pg.drop_down_menu;
            //十、


            // 十一、删除的弹框   $pg.popup
            window.popup=$pg.popup;
            window.promptBox=$pg.promptBox;

            // /十二、input带输入下拉table列表的检索功能
            $pg.drop_down_table();
            //十三、 正则
            $pg.pgReg();
            // 十四、对table列表设置触发色
            $pg.tableTrigger('.table tbody');
            this.tableTrigger=$pg.tableTrigger;
            // 十五、树形菜单点击展开关闭
            $pg.tree_down();
            // 十六、一级菜单多选互换
            $pg.A_menu();
            // 十八、二级菜单移动
            $pg.B_menuList();
            //十九、分页
            // $pg.pg_page();
            window.pg_page=$pg.pg_page;
            //二十一、点击table表头给内容排序
            // $pg.tHeadClickSort('tableClickSort');
            window.tHeadClickSort=$pg.tHeadClickSort;
            //二十二、input检索ul  或者table
            window.inputRetrieve=$pg.inputRetrieve;
        },
        //四、有下拉滚动条的table列表
        pg_table_scroll:function (obj) {
            var _this=this.pg_table_scroll;
            var tabScrollDefaults={
                className:'.table_child',
                width:"100%",//整体的最外面一层div的宽度
                cont_height:"100%",//需要滚动内容的高度
                borderColor:"#999",//定义边框的颜色
            }
            var op=$.extend({},tabScrollDefaults,obj);
            _this.className=op.className;
            _this.width=op.width;
            _this.cont_height=op.cont_height;
            _this.borderColor=op.borderColor;
            //    定义最外层div的宽度
            $(_this.className).css('width',_this.width);
//    定义滚动内容的高度
            $(_this.className+'>div').css('height',_this.cont_height+'px').css('overflow-x','hidden');
//定义里面的table宽度全部为100% 和边框的边距
            $(_this.className+' table').css('width','100%').attr('cellspacing','0').attr('cellpadding','0');
            $(_this.className+'>table').css({
                borderTop:'1px solid '+_this.borderColor,
            });
            if($(_this.className+'>table').css('color')=='rgb(255, 255, 255)'){
                $(_this.className+'>table').css({
                    border:'0'
                })
            }else {
                $(_this.className+'>table').css({
                    border:'1px soild'+_this.borderColor,
                })
            }
//    边框颜色
            $(_this.className+' table tr td').css({
                boxSizing:'border-box',
                border:'1px solid '+_this.borderColor,
                borderTop:'0'
            });
            $(_this.className+' table tr td:nth-child(1)').css('border-right','0');
            var widt=$(_this.className).width();
            $(_this.className+'>div table').css('width', widt + 'px');
//    获得内容高度检查是否出滚动条
            var contHeight=$(_this.className+'>div>table').height();
            var widt=$(_this.className).width();
            if (contHeight > _this.cont_height) {
                $(_this.className+'>div table').css('width', widt + 'px');
                $(_this.className+'>div').css('overflow-y','scroll');
            }
        },
        //八 、input带输入下拉检索功能
        drop_down_menu:function (obj) {
            var _this=$pg.drop_down_menu;
            _this.pgel='.drop_down_menu';
            $(_this.pgel).children('input').on('click',function () {
                $(_this.pgel).children('ul').hide();
                $(this).siblings('ul').toggle();
                if($(this).siblings('ul').children('li').children('ul').length>0){
                    $(this).siblings('ul').children('li').css({
                        borderBottom:'0',
                    })
                }
            });

            $('body').bind("click",function(e){
                var target = $(e.target);
                // if(target.closest(_this.pgel).children('input').length == 0&&target.closest(_this.pgel).children('ul').length == 0){
                if(target.closest(_this.pgel).length == 0){
                    $(_this.pgel).children('ul').hide();
                }
            });


            $(_this.pgel).children('ul').children('li').on('click',function () {
                var text=$(this).text();
                var code=$(this).attr('code');
                $(this).parents(this.pgel).children('input').val(text).attr('drop_down_code',code);
                $(this).parent().hide();
            });

            $(_this.pgel).children('ul').find('li').on('mousemove',function () {
                $(this).css({
                    background:'#f1f1f1',
                })
            });
            $(_this.pgel).children('ul').children('li').on('mouseout',function () {
                $(this).css({
                    background:'transparent',
                })
            });
            var str="";var arrRslt="";
            var ul = $(_this.pgel).children('ul'), inp = $(_this.pgel).children('input');

            inp.keyup(function(){

                var me = $(this);
                var tVal=me.val().trim();
                var v = me.val().replace(/^\s+|\s+$/g,"");
                var b = tVal.toLowerCase(tVal);
                var c = tVal.toUpperCase(tVal);
                //检索
                // var lis = ul.find("li");
                var lis = me.siblings('ul').find('li');
                // $(_this.pgel).children('ul').find('li').each(function (index, elem) {
                //     str = $(elem).text().trim();
                //     arrRslt = $pg.jiansuo(str);
                //     if($(elem).find('.publicText_span').length==0) {
                //         $(elem).append("<span class='publicText_span' style='display: none'>"+arrRslt+"</span>");
                //     }
                // });


                if(v==""){
                    lis.filter(":hidden").show();
                }else{
                    lis.hide().filter(":contains('"+b+"')").show();
                    lis.filter(":contains('"+c+"')").show();
                }
            });



        },
        //十、
        jiansuo:function (str) {
            var strChineseFirstPY = "YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZX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AZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY";
//此处收录了375个多音字,数据来自于http://www.51window.net/page/pinyin
            var oMultiDiff={"19969":"DZ","19975":"WM","19988":"QJ","20048":"YL","20056":"SC","20060":"NM","20094":"QG","20127":"QJ","20167":"QC","20193":"YG","20250":"KH","20256":"ZC","20282":"SC","20285":"QJG","20291":"TD","20314":"YD","20340":"NE","20375":"TD","20389":"YJ","20391":"CZ","20415":"PB","20446":"YS","20447":"SQ","20504":"TC","20608":"KG","20854":"QJ","20857":"ZC","20911":"PF","20504":"TC","20608":"KG","20854":"QJ","20857":"ZC","20911":"PF","20985":"AW","21032":"PB","21048":"XQ","21049":"SC","21089":"YS","21119":"JC","21242":"SB","21273":"SC","21305":"YP","21306":"QO","21330":"ZC","21333":"SDC","21345":"QK","21378":"CA","21397":"SC","21414":"XS","21442":"SC","21477":"JG","21480":"TD","21484":"ZS","21494":"YX","21505":"YX","21512":"HG","21523":"XH","21537":"PB","21542":"PF","21549":"KH","21571":"E","21574":"DA","21588":"TD","21589":"O","21618":"ZC","21621":"KHA","21632":"ZJ","21654":"KG","21679":"LKG","21683":"KH","21710":"A","21719":"YH","21734":"WOE","21769":"A","21780":"WN","21804":"XH","21834":"A","21899":"ZD","21903":"RN","21908":"WO","21939":"ZC","21956":"SA","21964":"YA","21970":"TD","22003":"A","22031":"JG","22040":"XS","22060":"ZC","22066":"ZC","22079":"MH","22129":"XJ","22179":"XA","22237":"NJ","22244":"TD","22280":"JQ","22300":"YH","22313":"XW","22331":"YQ","22343":"YJ","22351":"PH","22395":"DC","22412":"TD","22484":"PB","22500":"PB","22534":"ZD","22549":"DH","22561":"PB","22612":"TD","22771":"KQ","22831":"HB","22841":"JG","22855":"QJ","22865":"XQ","23013":"ML","23081":"WM","23487":"SX","23558":"QJ","23561":"YW","23586":"YW","23614":"YW","23615":"SN","23631":"PB","23646":"ZS","23663":"ZT","23673":"YG","23762":"TD","23769":"ZS","23780":"QJ","23884":"QK","24055":"XH","24113":"DC","24162":"ZC","24191":"GA","24273":"QJ","24324":"NL","24377":"TD","24378":"QJ","24439":"PF","24554":"ZS","24683":"TD","24694":"WE","24733":"LK","24925":"TN","25094":"ZG","25100":"XQ","25103":"XH","25153":"PB","25170":"PB","25179":"KG","25203":"PB","25240":"ZS","25282":"FB","25303":"NA","25324":"KG","25341":"ZY","25373":"WZ","25375":"XJ","25384":"A","25457":"A","25528":"SD","25530":"SC","25552":"TD","25774":"ZC","25874":"ZC","26044":"YW","26080":"WM","26292":"PB","26333":"PB","26355":"ZY","26366":"CZ","26397":"ZC","26399":"QJ","26415":"ZS","26451":"SB","26526":"ZC","26552":"JG","26561":"TD","26588":"JG","26597":"CZ","26629":"ZS","26638":"YL","26646":"XQ","26653":"KG","26657":"XJ","26727":"HG","26894":"ZC","26937":"ZS","26946":"ZC","26999":"KJ","27099":"KJ","27449":"YQ","27481":"XS","27542":"ZS","27663":"ZS","27748":"TS","27784":"SC","27788":"ZD","27795":"TD","27812":"O","27850":"PB","27852":"MB","27895":"SL","27898":"PL","27973":"QJ","27981":"KH","27986":"HX","27994":"XJ","28044":"YC","28065":"WG","28177":"SM","28267":"QJ","28291":"KH","28337":"ZQ","28463":"TL","28548":"DC","28601":"TD","28689":"PB","28805":"JG","28820":"QG","28846":"PB","28952":"TD","28975":"ZC","29100":"A","29325":"QJ","29575":"SL","29602":"FB","30010":"TD","30044":"CX","30058":"PF","30091":"YSP","30111":"YN","30229":"XJ","30427":"SC","30465":"SX","30631":"YQ","30655":"QJ","30684":"QJG","30707":"SD","30729":"XH","30796":"LG","30917":"PB","31074":"NM","31085":"JZ","31109":"SC","31181":"ZC","31192":"MLB","31293":"JQ","31400":"YX","31584":"YJ","31896":"ZN","31909":"ZY","31995":"XJ","32321":"PF","32327":"ZY","32418":"HG","32420":"XQ","32421":"HG","32438":"LG","32473":"GJ","32488":"TD","32521":"QJ","32527":"PB","32562":"ZSQ","32564":"JZ","32735":"ZD","32793":"PB","33071":"PF","33098":"XL","33100":"YA","33152":"PB","33261":"CX","33324":"BP","33333":"TD","33406":"YA","33426":"WM","33432":"PB","33445":"JG","33486":"ZN","33493":"TS","33507":"QJ","33540":"QJ","33544":"ZC","33564":"XQ","33617":"YT","33632":"QJ","33636":"XH","33637":"YX","33694":"WG","33705":"PF","33728":"YW","33882":"SR","34067":"WM","34074":"YW","34121":"QJ","34255":"ZC","34259":"XL","34425":"JH","34430":"XH","34485":"KH","34503":"YS","34532":"HG","34552":"XS","34558":"YE","34593":"ZL","34660":"YQ","34892":"XH","34928":"SC","34999":"QJ","35048":"PB","35059":"SC","35098":"ZC","35203":"TQ","35265":"JX","35299":"JX","35782":"SZ","35828":"YS","35830":"E","35843":"TD","35895":"YG","35977":"MH","36158":"JG","36228":"QJ","36426":"XQ","36466":"DC","36710":"JC","36711":"ZYG","36767":"PB","36866":"SK","36951":"YW","37034":"YX","37063":"XH","37218":"ZC","37325":"ZC","38063":"PB","38079":"TD","38085":"QY","38107":"DC","38116":"TD","38123":"YD","38224":"HG","38241":"XTC","38271":"ZC","38415":"YE","38426":"KH","38461":"YD","38463":"AE","38466":"PB","38477":"XJ","38518":"YT","38551":"WK","38585":"ZC","38704":"XS","38739":"LJ","38761":"GJ","38808":"SQ","39048":"JG","39049":"XJ","39052":"HG","39076":"CZ","39271":"XT","39534":"TD","39552":"TD","39584":"PB","39647":"SB","39730":"LG","39748":"TPB","40109":"ZQ","40479":"ND","40516":"HG","40536":"HG","40583":"QJ","40765":"YQ","40784":"QJ","40840":"YK","40863":"QJG"};
//参数,中文字符串
//返回值:拼音首字母串数组
            str=str;
            if(typeof(str) != "string")
                throw new Error(-1,"函数makePy需要字符串类型参数!");
            var arrResult = new Array(); //保存中间结果的数组
            for(var i=0,len=str.length;i<len;i++){
//获得unicode码
                var ch = str.charAt(i);
//检查该unicode码是否在处理范围之内,在则返回该码对映汉字的拼音首字母,不在则调用其它函数处理
                arrResult.push(checkCh(ch));
            }
//处理arrResult,返回所有可能的拼音首字母串数组
            return mkRslt(arrResult);

            function checkCh(ch){
                var uni = ch.charCodeAt(0);
//如果不在汉字处理范围之内,返回原字符,也可以调用自己的处理函数
                if(uni > 40869 || uni < 19968)
                    return ch; //dealWithOthers(ch);
//检查是否是多音字,是按多音字处理,不是就直接在strChineseFirstPY字符串中找对应的首字母
                return (oMultiDiff[uni]?oMultiDiff[uni]:(strChineseFirstPY.charAt(uni-19968)));
            }
            function mkRslt(arr){
                var arrRslt = [""];
                for(var i=0,len=arr.length;i<len;i++){
                    var str = arr[i];
                    var strlen = str.length;
                    if(strlen == 1){
                        for(var k=0;k<arrRslt.length;k++){
                            arrRslt[k] += str;
                        }
                    }else{
                        var tmpArr = arrRslt.slice(0);
                        arrRslt = [];
                        for(k=0;k<strlen;k++){
//复制一个相同的arrRslt
                            var tmp = tmpArr.slice(0);
//把当前字符str[k]添加到每个元素末尾
                            for(var j=0;j<tmp.length;j++){
                                tmp[j] += str.charAt(k);
                            }
//把复制并修改后的数组连接到arrRslt上
                            arrRslt = arrRslt.concat(tmp);
                        }
                    }
                }
                return arrRslt;
            }
//两端去空格函数
            String.prototype.trim = function() {    return this.replace(/(^\s*)|(\s*$)/g,""); }



        },

        //十一、删除的模态弹框
        popup:function (obj) {
            var _this=$pg.popup;
            var bounced_defaults={
                text:"操作不当！",//显示的文本
                bgColor:"#f1f1f1", //背景皮肤
                width:'280',//设置宽度
                height:'170',//设置高度
                btnClass:'',//确定按钮的类值
                bgOpacity:'0',//大背景的透明度
                headBgColor:'#eee',//头部颜色
                headColor:"#333",//头部字体颜色
                btnBgColor:'#999',//按钮的颜色
                btnColor:'#fff',//按钮的字体颜色
                btnToggle:{
                    btnDetermine:true,//确定按钮是否显示
                    btnCancel:true
                },//取消按钮是否显示
                determine:function(){},//确定方法
                timeOut:true,//定时关闭  true为不关闭  或者不设置为不关闭
            }
            var op=$.extend({},bounced_defaults,obj);
            _this.text=op.text;
            _this.bgColor=op.bgColor;
            _this.button=op.button;
            _this.width=op.width;
            _this.height=op.height;
            _this.btnClass=op.btnClass;
            _this.bgOpacity=parseFloat(op.bgOpacity);
            _this.headBgColor=op.headBgColor;
            _this.btnBgColor=op.btnBgColor;
            _this.btnColor=op.btnColor;
            _this.btnToggle=op.btnToggle;
            _this.determine=op.determine;
            _this.timeOut=op.timeOut;

            var html='<div class="delete_modal_upp_par" style="position: fixed;left: 0;top: 0;width: 100%;height: 100%;background: rgba(0,0,0,'+_this.bgOpacity+');z-index: 9999;">' +
                '<div class="delete_modal_upp"  style="background-color: '+_this.bgColor+';left: 50%;position: absolute;top: 50%;border:1px solid #ddd;opacity:0;' +
                'margin-left: -'+_this.width/2+'px;margin-top:-'+_this.height/2+'px;overflow: hidden;">' +
                '<p style="height: 30px;line-height: 30px;padding-left: 20px;' +
                'background-color: '+_this.headBgColor+';color:'+_this.headColor+';border-bottom: 1px solid #ddd;">信息' +
                '<span style="display: block;float: right;padding: 0 20px;font-size: 14px;cursor: pointer;" class="delete_modal_upp_hide">X</span></p>' +
                '<p style="height: 58px;padding:0px 40px;font-size: 16px;line-height: 30px;padding-top: 25px;">'+_this.text+'</p>' +
                '<div style="text-align: center;margin-top: 10px">'+
                '<button style="margin: 0 20px;background-color: '+_this.btnBgColor+';color: '+_this.btnColor+';border: 0;"class="button  btn_med '+_this.btnClass+'"> 确定</button>' +
                '<button style="background-color: '+_this.btnBgColor+';color: '+_this.btnColor+';border: 0;"  class="delete_modal_upp_hide button  btn_med" id="popup_cancel_btn">取消</button>' +
                '</div>' +
                '</div>' +
                '</div>';
            $('body').prepend(html);
            if(_this.btnToggle.btnDetermine==true||_this.btnToggle.btnDetermine==undefined){
                $('.'+_this.btnClass).show();
            }else {
                $('.'+_this.btnClass).hide();
            }
            if(_this.btnToggle.btnCancel==true||_this.btnToggle.btnCancel==undefined){
                $('#popup_cancel_btn').show();
            }else {
                $('#popup_cancel_btn').hide();
            }

            $('.delete_modal_upp').animate({
                width:_this.width+'px',
                height:_this.height+'px',
                opacity:'1',
            },200);
            function hideModal() {
                $('.delete_modal_upp').animate({
                    width:'0px',
                    height:'0px',
                    opacity:'0',
                },200,function () {
                    $('.delete_modal_upp_par').remove();
                });
            }
            //取消按钮
            $('.delete_modal_upp_hide').click(function () {
                hideModal();
            })
            $('.'+_this.btnClass).click(function(){
                hideModal();
                setTimeout(function () {
                    _this.determine();
                },700);
                return false;
            })
            //判断时间定时关闭模态
            if(_this.timeOut===true){
                return false;
            }else {
                setTimeout(function () {
                    hideModal();
                },_this.timeOut*1000)
            }
        },
        //十二、input带输入下拉检索table列表的检索功能
        drop_down_table:function (obj) {
            var _this=this.drop_down_table;
            var listTable_defaults={
                table:'.drop_down_table',
                num:1,//传入第几个值到input里面
            };
            var op=$.extend({},listTable_defaults,obj);
            _this.table=op.table;
            _this.num=op.num;
            //鼠标移入
            $(_this.table).find('td').mousemove(function () {
                $(this).parent().css({
                    background:'#f1f1f1',
                })
            });
            //鼠标移出
            $(_this.table).find('td').mouseout(function () {
                $(this).parent().css({
                    background:'transparent',
                })
            });
            //点击input显示隐藏
            $(_this.table).children('input').on('click',function () {
                $(_this.table+'>div').toggle();
            });
            //点击其他地方  隐藏
            $('body').bind("click",function(e){
                var target = $(e.target);
                // if(target.closest(_this.pgel).children('input').length == 0&&target.closest(_this.pgel).children('ul').length == 0){
                if(target.closest(_this.table).length == 0){
                    $(_this.table).children('div').hide();
                }
            });
            //检索
            var ul = $(_this.table).children('div'), inp = $(_this.table).children('input');
            inp.keyup(function(){
                var me = $(this);
                var v = me.val().replace(/^\s+|\s+$/g,"");
                var tVal=me.val();
                var b = tVal.toLowerCase(tVal);
                var c = tVal.toUpperCase(tVal);
                $(_this.table).find('tr').find('td').each(function (index, elem) {
                    str = $(elem).text().trim();
                    arrRslt = $pg.jiansuo(str);
                    if($(elem).find('.publicText_span').length==0) {
                        $(elem).append("<span class='publicText_span' style='display: none'>"+arrRslt+"</span>");
                    }
                });

                //检索
                var lis = ul.find("td");
                if(v==""){
                    lis.parent('tr').filter(":hidden").show();
                    // lis.filter(":hidden").show();
                }else{
                    lis.parent('tr').hide().filter(":contains('"+b+"')").show();
                    lis.parent('tr').filter(":contains('"+c+"')").show();
                }
            });


            //    点击td的时候赋值并且赋code
            $(_this.table).find('td').on('click',function () {
                //获得第一个td的内容传入input里面
                var text=$(this).parent('tr').children('td:nth-child('+_this.num+')').text();
                var code=$(this).parent('tr').attr('code');
                $(this).parents(_this.table).children('input').val(text);
                $(this).parents(_this.table).children('input').attr('table_code',code);
                $(this).parents(_this.table).children('div').hide();
            })
        },
        //十三 、正则  验证
        pgReg:function () {
            $('input[pgReg]').each(function (index, elem) {
                $(elem).replaceWith('<div class="regInput">'+elem.outerHTML+'</div>');
            });
            //输入的时候判断
            $('body').on('input  propertychange','input[pgReg]',function () {
                //获取传入的值    来判断是哪一种正则
                var regText=$(this).attr('pgReg');
                //获取输入的内容
                var value=$.trim($(this).val())+"";
                // 1、手机正则
                if(regText=='phone'){
                    if(value.length>=11){
                        value=value.slice(0,11);
                    }
                    var phoneValue=parseInt(value);
                    if(isNaN(phoneValue)){
                        $(this).val("")
                    }else {
                        $(this).val(phoneValue)
                    }
                }
                //2、邮箱正则直接在下面验证

                //只能输入数字类型
                var maxNumber=parseInt($(this).attr('maxNumber'));
                if(isNaN(maxNumber)){
                    maxNumber=17;
                }
                if(regText=='number'){
                    if(value.length>=maxNumber){
                        value=value.slice(0,maxNumber);
                    }
                    var numberValue=parseInt(value);
                    if(isNaN(numberValue)){
                        $(this).val("")
                    }else {
                        $(this).val(numberValue)
                    }
                }
                //身份证  前17位只能输入数字 最后一位只能输入X
                if(regText=='identity'){
                    if(value.length<18){
                        var  identityValue=Number(value);
                        if(isNaN(identityValue)){
                            value=value.slice(0,value.length-1);
                        }
                        // identityValue=identityValue+"";
                        $(this).val(value);
                    }else if(value.length>18){
                        var value=$(this).val().slice(0,18);
                        $(this).val(value)
                    }
                }
            });
            //获取焦点关闭提示文字
            $('body').on('focus','input[pgReg]',function () {
                $(this).siblings('div').hide();
                $(this).css({
                    border:'1px solid #999',
                })
            });
            //失去焦点判断
            $('body').on('blur','input[pgReg]',function () {
                //获取传入的值    来判断是哪一种正则
                var regText=$(this).attr('pgReg');
                //获取输入的内容
                // var value=$.trim($(this).val())+"";

                if($(this).val()=="")return false;

                //如果是手机类型的时候
                if(regText=='phone'){
                    var phoneValue=$(this).val();
                    phoneValue=$.trim(phoneValue);
                    if(phoneValue==""||phoneValue.length==0){
                        return false;
                    }else if(!(/^1[34578]\d{9}$/.test(phoneValue))){
                        var height=$(this).parent('.regInput').height();
                        var divText='<div style="position: absolute;left: 0;top: '+height+'px;color: #fa0002;">手机号码格式不正确</div>';
                        $(this).parent('.regInput').append(divText);
                        $(this).css({
                            border:'1px solid #D68783',
                        });
                        return false;
                    }else {
                        $(this).css({
                            border:'1px solid #9AD793',
                        });
                    }
                }
                //邮箱类型
                if(regText=='email'){
                    var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
                    var emailValue=$(this).val();
                    var emailValue=$.trim(emailValue);
                    if(emailValue==""||emailValue.length==0){
                        return false;
                    }else if (!filter.test($(this).val())){
                        var divText='<div style="position: absolute;left: 0;top: '+height+'px;color: #fa0002;">邮箱格式不正确</div>';
                        $(this).parent('.regInput').append(divText);
                        $(this).css({
                            border:'1px solid #D68783',
                        });
                        return false;
                    }else {
                        $(this).css({
                            border:'1px solid #9AD793',
                        });
                    }
                }
                //身份证验证
                if(regText=='identity'){
                    var code=$(this).val();

                    var city={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江 ",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北 ",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏 ",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外 "};
                    var tip = "";
                    var pass= true;

                    if(!code || !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(code)){
                        // tip = "身份证号格式错误";
                        pass = false;
                    }
                    else if(!city[code.substr(0,2)]){
                        // tip = "地址编码错误";
                        pass = false;
                    }
                    else{
                        //18位身份证需要验证最后一位校验位
                        if(code.length == 18){
                            code = code.split('');
                            //∑(ai×Wi)(mod 11)
                            //加权因子
                            var factor = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 ];
                            //校验位
                            var parity = [ 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 ];
                            var sum = 0;
                            var ai = 0;
                            var wi = 0;
                            for (var i = 0; i < 17; i++)
                            {
                                ai = code[i];
                                wi = factor[i];
                                sum += ai * wi;
                            }
                            var last = parity[sum % 11];
                            if(parity[sum % 11] != code[17]){
                                // tip = "校验位错误";
                                pass =false;
                            }
                        }
                    }
                    if(!pass){
                        var divText='<div style="position: absolute;left: 0;top: '+height+'px;color: #fa0002;">请输入有效的身份证号</div>';
                        $(this).parent('.regInput').append(divText);
                        $(this).css({
                            border:'1px solid #D68783',
                        });
                        return false;
                    }else {
                        $(this).css({
                            border:'1px solid #9AD793',
                        });
                    }
                }
            });
            this.twoDecimal=function (obj) {
                obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符
                obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的
                obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
                obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3');//只能输入两个小数
                if(obj.value.indexOf(".")< 0 && obj.value !=""){//以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额
                    obj.value= parseFloat(obj.value);
                }
            }


        },
        // 十四、对table列表设置触发色
        tableTrigger:function (e) {
            $(e).on('mousemove','td',function () {
                $(this).parent('tr').addClass('tableMousemove').siblings('.tableMousemove').removeClass('tableMousemove');
            })
            $(e).on('mouseout','td',function () {
                $(this).parent('tr').removeClass('tableMousemove');
            })
            $(e).on('click','td',function () {
                $(this).parent('tr').addClass('tableActive').siblings('.tableActive').removeClass('tableActive');
            })
        },
        // 十五、树形菜单点击展开关闭
        tree_down:function () {
            $('.tree_down').on('click','a',function () {
                console.log(111);
                $(this).siblings('ul').toggle();
                if($(this).siblings('ul').length==0){
                    $(this).parents('.tree_down').parent().find('.color_red').removeClass('color_red');
                    $(this).addClass('color_red');
                }
            })
        },
        // 十六、一级菜单多选互换
        A_menu:function () {
            var _this=this.A_menu;
            var A_menu_object={
                A_menu:'.A_menu',//外面的盒子
                A_menu_left:'.A_menu_left',//左边的
                A_menu_center:'.A_menu_center',//中间
                A_menu_right:'.A_menu_right',//右边
                A_menu_Btnleft:'.A_menu_Btnleft',//向左按钮
                A_menu_Btnright:'.A_menu_Btnright',//向右按钮
            }
            var op=$.extend({},A_menu_object);
            _this.A_menu=op.A_menu;
            _this.A_menu_left=op.A_menu_left;
            _this.A_menu_center=op.A_menu_center;
            _this.A_menu_right=op.A_menu_right;
            _this.A_menu_Btnleft=op.A_menu_Btnleft;
            _this.A_menu_Btnright=op.A_menu_Btnright;
            _this.active='A_menu_active';

            //点击左边的列表添加class值
            $(_this.A_menu).on('click',_this.A_menu_left+'>li',function () {
                // console.log(this.outerHTML);
                if($(this).hasClass(_this.active)){
                    $(this).removeClass(_this.active);
                    return false;
                }else {
                    $(this).addClass(_this.active);
                    return false;
                }
            })
            //点击左边的列表添加class值
            $(_this.A_menu).on('click',_this.A_menu_right+'>li',function () {
                if($(this).hasClass(_this.active)){
                    $(this).removeClass(_this.active);
                    return false;
                }else {
                    $(this).addClass(_this.active);
                    return false;
                }
            })
            //点击向左的按钮
            $(_this.A_menu).on('click',_this.A_menu_Btnleft,function () {
                //循环右边选中的li移动到左边
                $(_this.A_menu_right).children('.'+_this.active).each(function (index, elem) {
                    //删除class的值方便赋值到左边
                    $(this).removeClass(_this.active);
                    $(this).parents(_this.A_menu).find(_this.A_menu_left).prepend(this.outerHTML);
                    //删除移动了的节点
                    $(this).remove();
                })
            })
            //点击向右的按钮
            $(_this.A_menu).on('click',_this.A_menu_Btnright,function () {
                //循环左边选中的li移动到左边
                $(_this.A_menu_left).children('.'+_this.active).each(function (index, elem) {
                    //删除class的值方便赋值到右边
                    $(this).removeClass(_this.active);
                    $(this).parents(_this.A_menu).find(_this.A_menu_right).prepend(this.outerHTML);
                    //删除移动了的节点
                    $(this).remove();
                })
            })



        },
        // 十七、单页面的轮播
        A_roasting:function (shuffling) {
            var i=0;
            var htmlLi="<li style='background-color: red'>"+$(shuffling.chiDiv).children('li:first-child').html()+"</li>";
            $(shuffling.chiDiv).append(htmlLi)
            //获取页面个数
            var len=$(shuffling.chiDiv).children('li').length;
            //    获取最外面盒子的宽度
            var windowWidth=$(shuffling.parDiv).width();
            $(shuffling.chiDiv).children('li').css({
                width:windowWidth+'px',
            });
            $(shuffling.chiDiv).css({
                width:windowWidth*len+'px',
            });
            //鼠标移入暂停  移出继续轮播
            $(shuffling.parDiv).mousemove(function () {
                shuffling.isTrue=false;
            })
            $(shuffling.parDiv).mouseout(function () {
                shuffling.isTrue=true;
            });
            //滑动出效果
            //记录初始时候按下的点
            var _this=this;
            var startMos;
            var lastMos;
            var lis=$(_this.parDiv);
            for(var i=0;i<lis.length;i++) {
                lis[i].addEventListener('touchstart', function () {
                    //当前的对象
                    startMos=this;
                    // 记录开始按下时的点
                    var touches = event.touches[0];
                    sta= {
                        x : touches.pageX,
                        y : touches.pageY,
                    };
                });
                lis[i].addEventListener('touchmove',function () {//移动过程的点
                    var touches = event.touches[0];
                    move= {
                        x:touches.pageX-sta.x,
                        y : touches.pageY-sta.y,
                    };
                    if(Math.abs(move.x)>Math.abs(move.y)){
                        event.preventDefault();
                    }
                });
                lis[i].addEventListener('touchend',function (e) {//移动结束的点
                    lastMos=this;
                    var wisthBtn=$(lastMos).find('button').width()*($(lastMos).find('button').length);
                    chEnd = {
                        x: e.changedTouches[0].pageX - sta.x,
                        y: e.changedTouches[0].pageY - sta.y,
                    }
                    console.log(chEnd.x)
                    if (chEnd.x < -50) {
                        $(lastMos).children(_this.listContainer).animate({
                            right: wisthBtn+'px',
                        }, 300)
                        $(lastMos).siblings().children(_this.listContainer).animate({
                            right:"0",
                        },300)
                    } else if (chEnd.x > 30) {
                        $(lastMos).children(_this.listContainer).animate({
                            right: "0px",
                        }, 300)
                    }
                });
            };


            function char() {
                if(shuffling.isTrue==false){
                    return;
                }else {
                    i++;
                    if (i < len) {
                        $(shuffling.chiDiv).animate({
                            left: '-' + windowWidth * i + 'px',
                        }, 500, function () {
                            if (i == (len - 1)) {
                                i = 0;
                                $(shuffling.chiDiv).css('left', '0px')
                            }
                        })
                    }
                }
            }
            setInterval(function () {
                char();
            },shuffling.time)
        },
        // 十八、二级菜单多选左右移动
        B_menuList:function (obj) {
            var def={
                B_menu:'.B_menu',//外
                B_menu_left:'.B_menu_left',//左
                B_menu_center:'.B_menu_center',//中
                B_menu_right:'.B_menu_right',//右
                B_menu_Btnleft:'.B_menu_Btnleft',//向左按钮
                B_menu_Btnright:'.B_menu_Btnright',//向右按钮
                B_menu_active:'B_menu_active',//添加的值
            }
            var op=$.extend({},def,obj);
            var _this=this;
            _this.B_menu=op.B_menu;//外
            _this.B_menu_left=op.B_menu_left;//左
            _this.B_menu_center=op.B_menu_center;//中
            _this.B_menu_right=op.B_menu_right;//右
            _this.B_menu_Btnleft=op.B_menu_Btnleft;//向左按钮
            _this.B_menu_Btnright=op.B_menu_Btnright;//向右按钮
            _this.B_menu_active=op.B_menu_active;//添加的值
            //点击li的时候添加上类值并且给出提示 非子菜单不给添加
            $(_this.B_menu).on('click','a',function () {
                if($(this).siblings('ul').length==0){
                    if($(this).hasClass(_this.B_menu_active)){
                        $(this).removeClass(_this.B_menu_active)
                    }else {
                        $(this).addClass(_this.B_menu_active)
                    }
                }
            })
            //点击向右移动的按钮
                .on('click',_this.B_menu_Btnright,function () {
                    $(_this.B_menu_left).find('.'+_this.B_menu_active).each(function (index, elem) {
                        var code=$(elem).parent().parent().siblings('a').attr('code');
                        var leftThis=$(this);
                        $(_this.B_menu_right).children('li').children('a').each(function (index2, elem2) {
                            if($(this).attr('code')!=code){
                                return
                            }else if($(this).attr('code')==code){
                                //获取到左边需要移动的内容
                                var leftText=leftThis.html();
                                $(this).siblings('ul').append('<li><a>'+leftText+'</a></li>');
                                leftThis.parent().remove();
                                //当左边的列表数量为空的时候删除一级菜单
                                $(_this.B_menu_left).children().children('ul').each(function (i,e) {
                                    if($(this).children().length==0){
                                        $(this).parent().remove();
                                    }
                                })
                            }
                        })
                    })
                    //获取本身选中的ul标记和自己的选中标记
                    $(_this.B_menu_left).children().children('ul').each(function (i,b) {
                        //获取每一个下面的选中的li
                        if($(this).find("."+ _this.B_menu_active).length>0) {
                            var arrText=new Array();
                            $(this).children('li').each(function (index, elem) {
                                if($(this).children().hasClass(_this.B_menu_active)){
                                    thisText=$(this).html();
                                    thisParText=$(this).parent().siblings('a').get(0).outerHTML;
                                    $(this).remove();
                                    arrText.push(thisText+"");
                                }
                            });
                            var html='<li>'+thisParText+'<ul><li>'+arrText.join('')+'</li></ul></li>';
                            $( _this.B_menu_right).append(html);
                            // console.log(thisParText)
                        }
                        if($(this).children().length==0){
                            $(this).parent('li').remove();
                        }
                    });
                    $(_this.B_menu_right).find('.'+_this.B_menu_active).removeClass(_this.B_menu_active);
                })
                //点击向左移动的按钮

                .on('click',_this.B_menu_Btnleft,function () {
                    $(_this.B_menu_right).find('.'+_this.B_menu_active).each(function (index, elem) {
                        var code=$(elem).parent().parent().siblings('a').attr('code');
                        var leftThis=$(this);
                        console.log(code)
                        $(_this.B_menu_left).children('li').children('a').each(function (index2, elem2) {
                            if($(this).attr('code')!=code){
                                return
                            }else if($(this).attr('code')==code){
                                console.log(1555)
                                //获取到左边需要移动的内容
                                var leftText=leftThis.html();
                                $(this).siblings('ul').append('<li><a>'+leftText+'</a></li>');
                                leftThis.parent().remove();
                                //当左边的列表数量为空的时候删除一级菜单
                                $(_this.B_menu_right).children().children('ul').each(function (i,e) {
                                    if($(this).children().length==0){
                                        $(this).parent().remove();
                                    }
                                })
                            }
                        })
                    });
                    //获取本身选中的ul标记和自己的选中标记
                    $(_this.B_menu_right).children().children('ul').each(function (i,b) {
                        //获取每一个下面的选中的li
                        if($(this).find("."+ _this.B_menu_active).length>0) {
                            var arrText=new Array();
                            $(this).children('li').each(function (index, elem) {
                                if($(this).children().hasClass(_this.B_menu_active)){
                                    thisText=$(this).html();
                                    thisParText=$(this).parent().siblings('a').get(0).outerHTML;
                                    $(this).remove();
                                    arrText.push(thisText+"");
                                }
                            });
                            var html='<li>'+thisParText+'<ul><li>'+arrText.join('')+'</li></ul></li>';
                            $( _this.B_menu_left).append(html);
                            // console.log(thisParText)
                        }
                        if($(this).children().length==0){
                            $(this).parent('li').remove();
                        }
                    });

                    $(_this.B_menu_left).find('.'+_this.B_menu_active).removeClass(_this.B_menu_active);
                })
        },
        //十九、分页
        pg_page:function (obj) {
            var defaut={
                pigpage:'.pigpage',
                pageNum:1,
                lastGO:'lastGo',
                bgColor:'#f7f7f7',//皮肤颜色
                acColor:'#eee',//禁用时候的颜色
                color:'#333',//字体颜色
            }
            var op=$.extend({},defaut,obj);
            this.pigpage=op.pigpage;
            this.pageNum=op.pageNum;//当前页码
            this.bgColor=op.bgColor;//背景颜色
            this.acColor=op.acColor;
            this.lastGO=op.lastGO;
            this.color=op.color;
            this.pageNumber=1;//页码
            var _this=this;




            var html='<div class="page_first page_button"><button class="">首页</button></div>' +
                '<div class="page_left page_button"><button class="">上一页</button></div>' +
                '<div class="page_center">第<span class="pageNum">'+this.pageNum+'</span>页/共<span class="pageLast"></span>页</div>' +
                '<div class="page_right page_button"><button class="">下一页</button></div>' +
                '<div class="page_last page_button"><button class="">尾页</button></div>' +
                '<div style="height: 30px;padding: 0 0 0 10px;line-height: 30px;width: 95px;">' +
                '<input class="inputVal_num" type="text"><button class="'+this.lastGO+' page_button" style="padding: 0 5px;cursor: pointer;">GO</button></div>';
            $(this.pigpage).html(html);
            $(this.pigpage).css({
                color:this.color,
            })
            $(this.pigpage).each(function (index, elem) {
                $(elem).find('.pageLast').text($(elem).attr('pages'));
            });


            $(this.pigpage).children('div').css({
                background:this.bgColor,
            });

            //上一页按钮
            $('.pigpage').find('.page_left').css({
                background:this.acColor,
            });
            $('.pigpage').find('.page_first').css({
                background:this.acColor,
            });
            //文字颜色
            $(this.pigpage).find('button').css({
                color:this.color
            });
            $(this.pigpage).find('button.'+this.lastGO).css({
                color:this.color,
                width:'40px'
            });


            // topPage:function () {//上一页
            var textnum1=1;
            $('.page_left').click(function () {
                //改变下一页和尾页的按钮状态
                $(this).parent().children('.page_right').css({
                    background:_this.bgColor,
                });
                $(this).nextAll('.page_last').css({
                    background:_this.bgColor,
                })
                //获取页码
                var texthtml=$(this).next('.page_center').find('.pageNum');
                var textNum=$(this).next('.page_center').find('.pageNum').text();
                var num=parseInt($('.pageNum').text());
                if(textNum>1){
                    texthtml.text(textNum - 1);
//                        _this.page=texthtml.text();
                }

                var firstNum=$(this).next('.page_center').find('.pageNum').text();
                if(firstNum==1){
                    $(this).css({
                        background:_this.acColor,
                    });
                    $(this).prev('.page_first').css({
                        background:_this.acColor,
                    })
                }

                //     var pageNumber=$(e).find('.pageNum').text();
                //     console.log(pageNumber)
                // };
            })


            // botPage:function () {//下一页
            $('.page_right').click(function () {
                //改变上一页和首页的按钮状态
                $(this).parent().children('.page_first').css({
                    background:_this.bgColor,
                });
                $(this).parent().children('.page_left').css({
                    background:_this.bgColor,
                });
//显示上一页
                var texthtml=$(this).prev('.page_center').find('.pageNum');
                var textNum=$(this).prev('.page_center').find('.pageNum').text();
                var num=parseInt(textNum);
                var pigNum=parseInt($(this).parents(_this.pigpage).find('.pageLast').text());
                if(num<pigNum) {
                    //点击一次页数自增一次  不能超过总页数
                    texthtml.text(num + 1);
                }
                //如果最后一页就隐藏下一页
                var firstNum=$(this).prev('.page_center').find('.pageNum').text();
                var lastNum=$(this).prev('.page_center').find('.pageLast').text();
                if(firstNum==lastNum){
                    $(this).css({
                        background:_this.acColor,
                    });
                    $(this).next('.page_last').css({
                        background:_this.acColor,
                    })
                }
                // _this.pageNumber=$(this).parents(_this.pigpage).find('.pageNum').text();

            })

            // firstPage:function () {
            $('.page_first').click(function () {
                //改变下一页和尾页的状态
                $(this).nextAll('.page_right').css({
                    background:_this.bgColor,
                }).next().css({
                    background:_this.bgColor,
                })

                //值变为1
                var first=$(this).nextAll('.page_center').children('.pageNum').text();
                var last=$(this).nextAll('.page_center').children('.pageLast').text();
                if(first!=1){
                    $(this).nextAll('.page_center').children('.pageNum').text(1);
                    $(this).css({
                        background:_this.acColor,
                    }).next().css({
                        background:_this.acColor,
                    })
                }
                // _this.pageNumber=$(this).parents(_this.pigpage).find('.pageNum').text();


            })

            // lastPage:function () {
            $('.page_last').click(function () {
                //改变首页和上一页的状态
                $(this).prevAll('.page_first').css({
                    background:_this.bgColor,
                }).next().css({
                    background:_this.bgColor,
                })
                //值变为1
                var first=$(this).prevAll('.page_center').children('.pageNum').text();
                var last=$(this).prevAll('.page_center').children('.pageLast').text();
                if(first!=last){
                    $(this).prevAll('.page_center').children('.pageNum').text(last);
                    $(this).css({
                        background:_this.acColor,
                    }).prev().css({
                        background:_this.acColor,
                    })
                }
                // _this.pageNumber=$(this).parents(_this.pigpage).find('.pageNum').text();

            })

            // lastGOClick:function () {//GO的点击事件
            $('.'+this.lastGO).click(function () {
                var pigNum=parseInt($(this).parents(_this.pigpage).find('.pageLast').text());
                var inValue=$.trim($(this).siblings('.inputVal_num').val());
                if(inValue==""){
                    return ;
                }else if(inValue==pigNum){
                    $(this).parent().siblings('.page_right').css({
                        background:_this.acColor,
                    }).next().css({
                        background:_this.acColor,
                    }).siblings('.page_first').css({
                        background:_this.bgColor,
                    }).next().css({
                        background:_this.bgColor,
                    })
                }else if(inValue==1){
                    $(this).parent().siblings('.page_right').css({
                        background:_this.bgColor,
                    }).next().css({
                        background:_this.bgColor,
                    }).siblings('.page_first').css({
                        background:_this.acColor,
                    }).next().css({
                        background:_this.acColor,
                    })
                }else {
                    $(this).parent().siblings('.page_right').css({
                        background:_this.bgColor,
                    }).next().css({
                        background:_this.bgColor,
                    }).siblings('.page_first').css({
                        background:_this.bgColor,
                    }).next().css({
                        background:_this.bgColor,
                    })
                }
                $(this).parent('').siblings('.page_center').children('.pageNum').text($(this).siblings('.inputVal_num').val());
                // _this.pageNumber=$(this).parents(_this.pigpage).find('.pageNum').text();

            })
            var _this=this;
            $('body').on('input  propertychange','.inputVal_num',function () {
                var pigNum=parseInt($(this).parents(_this.pigpage).find('.pageLast').text());
                var value=parseInt($(this).val());
                if(isNaN(value)){
                    $(this).val("")
                }
                if(value>pigNum){
                    $(this).val(pigNum);
                }
                if(value<1){
                    $(this).val(1);
                }
            })
            return false;
        },
        //二十、防止用户鼠标点击过快导致页面数据来不及加载
        clickK:function (numb,tar) {
            numb==undefined ? numb=1000 : numb=numb;
            tar==undefined ? tar=document : tar=tar;
            var clicktag = 0;
            $(tar).on('click',function (e) {
                if (clicktag == 0) {
                    clicktag = 1;
                    var e=e.target;
                    $(this).addClass("bodyClick");
                    setTimeout(function () {
                        $(e).removeClass('bodyClick');
                        clicktag = 0;
                    }, numb);
                }
            });
        },
        //二十一、点击table表头给内容排序
        tHeadClickSort:function (id) {
            var table = document.getElementById (id);
            if(table==null) return false;
            var thead = table.getElementsByTagName('thead')[0];
            var tbody = table.tBodies[0];
            var rows = tbody.rows;
            var cells = thead.getElementsByTagName('th');
            for ( var j = 0; j < cells.length; j++) {
                cells[j].onclick = function () {
                    var asc = this.asc = !!this.asc ? -this.asc : -1;
                    var array = [];
                    array.index = this.cellIndex;
                    for ( var i = 0; i < rows.length; i++) {
                        array.push (rows[i]);
                    }
                    array.sort (function (a, b) {
                        //判断获取的数据是否有空
                        var n1 = a.cells[array.index].firstChild==null?"":a.cells[array.index].firstChild.nodeValue;
                        var n2 = b.cells[array.index].firstChild==null?"":b.cells[array.index].firstChild.nodeValue;
                        var reg=/^[0-9]*$/;
                        if(reg.test(n1)&&n1!=""){
                            n1=parseInt(n1);
                        }
                        if(reg.test(n2)&&n2!=""){
                            n2=parseInt(n2);
                        }
                        if (n1 > n2) {
                            return asc;
                        } else if (n1 < n2) {
                            return -asc;
                        }else {
                            return 0;
                        }
                    });
                    for ( var i = 0; i < array.length; i++) {
                        tbody.appendChild (array[i]);
                    }
                }
            }
        },
        //二十二、input检索ul或者table
        inputRetrieve:function (obj) {
            if(obj.ul!=undefined&&obj.table!=undefined){
                alert("table和ul只能声明一个！");
                return false;
            }
            if(obj.ul!=undefined){
                var ul = $(obj.ul);
            }
            if(obj.table!=undefined){
                var ul = $(obj.table);
            }
            var inp = $(obj.input);

            inp.keyup(function(){
                var me = $(this);
                var v = me.val().replace(/^\s+|\s+$/g,"");
                var tVal=me.val();
                var b = tVal.toLowerCase(tVal);
                var c = tVal.toUpperCase(tVal);
                //检索
                if(obj.ul!=undefined){
                    var lis = ul.find("li");
                }
                if(obj.table!=undefined){
                    var lis = ul.find("tr");
                }
                lis.find('td').each(function (index, elem) {
                    str = $(elem).text().trim();
                    arrRslt = $pg.jiansuo(str);
                    if($(elem).find('.publicText_span').length==0) {
                        $(elem).append("<span class='publicText_span' style='display: none'>"+arrRslt+"</span>");
                    }
                });
                if(v==""){
                    lis.filter(":hidden").show();
                }else{
                    lis.hide().filter(":contains('"+b+"')").show();
                    lis.filter(":contains('"+c+"')").show();
                }
            });
        },
    }
    $pg.init();
})(jQuery);



